package com.karry.yl.domain.healthdata;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.karry.commons.base.SuperEntity;

/**
 * 老人健康数据
 */
@TableName("health_data")
public class HealthData extends SuperEntity {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long elderlyId; //所属老人

    @JsonSerialize(using= ToStringSerializer.class)
    private Long healthDataItemId; //健康数据项目Id

    @JsonSerialize(using= ToStringSerializer.class)
    private Long recordsId; //服务记录Id

    private String healthDataitemName;  //健康数据项名称

    private String value;   //体检的值

    private Boolean nature; //false: 阴性   true:阳性

    private String description;   //病情描述或建议

    private String standardValues; //参考值

    @TableField(exist = false)
    private  Long itemId;//属于那个服务项目的数据

    public HealthData() {
    }

    public HealthData(Long elderlyId, Long healthDataItemId, String healthDataitemName, String value, Boolean nature, String description,String standardValues) {
        this.elderlyId = elderlyId;
        this.healthDataItemId = healthDataItemId;
        this.healthDataitemName = healthDataitemName;
        this.value = value;
        this.nature = nature;
        this.description = description;
        this.standardValues = standardValues;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public Long getHealthDataItemId() {
        return healthDataItemId;
    }

    public void setHealthDataItemId(Long healthDataItemId) {
        this.healthDataItemId = healthDataItemId;
    }

    public String getHealthDataitemName() {
        return healthDataitemName;
    }

    public void setHealthDataitemName(String healthDataitemName) {
        this.healthDataitemName = healthDataitemName;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Boolean getNature() {
        return nature;
    }

    public void setNature(Boolean nature) {
        this.nature = nature;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getRecordsId() {
        return recordsId;
    }

    public void setRecordsId(Long recordsId) {
        this.recordsId = recordsId;
    }

    public String getStandardValues() {
        return standardValues;
    }

    public void setStandardValues(String standardValues) {
        this.standardValues = standardValues;
    }
}
